import layoutHeaderAside from "@/layout/header-aside";

// 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require("@/libs/util.import." + process.env.NODE_ENV);
/**
 * 在主框架内显示
 */
const frameIn = [
  // 本地测试环境
  // {
  //   path: "/",
  //   redirect: { name: "index" },
  //   component: layoutHeaderAside,
  //   children: [
  //     // 首页
  //     {
  //       path: "index",
  //       name: "index",
  //       meta: {
  //         auth: true
  //       },
  //       component: _import("system/index")
  //     },
  //     // 系统 前端日志
  //     {
  //       path: "log",
  //       name: "log",
  //       meta: {
  //         title: "前端日志",
  //         auth: true
  //       },
  //       component: _import("system/log")
  //     },
  //     // 刷新页面 必须保留
  //     {
  //       path: "refresh",
  //       name: "refresh",
  //       hidden: true,
  //       component: _import("system/function/refresh")
  //     },
  //     // 页面重定向 必须保留
  //     {
  //       path: "redirect/:route*",
  //       name: "redirect",
  //       hidden: true,
  //       component: _import("system/function/redirect")
  //     },
  //     // 现货期货套期
  //     {
  //       path: "/spotFuturesHedging",
  //       name: "spotFuturesHedging",
  //       meta: {
  //         auth: true,
  //         title: "现货期货套期"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/add/spotFuturesHedging.vue"
  //       )
  //     },
  //     // 现货现货套期
  //     {
  //       path: "/spotHedging",
  //       name: "spotHedging",
  //       meta: {
  //         auth: true,
  //         title: "现货现货套期"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/add/spotHedging"
  //       )
  //     },
  //     // 现货期权套期
  //     {
  //       path: "/spotOptionHedging",
  //       name: "spotOptionHedging",
  //       meta: {
  //         auth: true,
  //         title: "现货期权套期"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/add/spotOptionHedging"
  //       )
  //     },
  //     // 期货期货套利
  //     {
  //       path: "/futuresArbitrage",
  //       name: "futuresArbitrage",
  //       meta: {
  //         auth: true,
  //         title: "期货期货套利"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/add/futuresArbitrage"
  //       )
  //     },
  //     // 现货单边
  //     {
  //       path: "/spotUnilateral",
  //       name: "spotUnilateral",
  //       meta: {
  //         auth: true,
  //         title: "现货单边"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/add/spotUnilateral"
  //       )
  //     },
  //     // 期货单边
  //     {
  //       path: "/futuresUnilateral",
  //       name: "futuresUnilateral",
  //       meta: {
  //         auth: true,
  //         title: "期货单边"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/add/futuresUnilateral"
  //       )
  //     },
  //     // 现货场外期权套期
  //     {
  //       path: "/overCounterOption",
  //       name: "overCounterOption",
  //       meta: {
  //         auth: true,
  //         title: "现货场外期权套期"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/add/overCounterOption"
  //       )
  //     },
  //     // 策略期初盈亏
  //     {
  //       path: "/profitAndLoss",
  //       name: "profitAndLoss",
  //       meta: {
  //         auth: true,
  //         title: "策略期初盈亏"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/add/profitAndLoss"
  //       )
  //     },
  //     // 选择策略
  //     {
  //       path: "/selectionStrategy",
  //       name: "selectionStrategy",
  //       meta: {
  //         auth: true,
  //         title: "选择策略"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/add/selectionStrategy"
  //       )
  //     },
  //     {
  //       path: "/selectionStrategy_two",
  //       name: "selectionStrategy_two",
  //       meta: {
  //         auth: true,
  //         title: "选择策略"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/add/selectionStrategy_two"
  //       )
  //     },
  //     // 期货匹配（策略）
  //     {
  //       path: "/tactics",
  //       name: "tactics",
  //       meta: {
  //         auth: true,
  //         title: "期货匹配（策略）-新增"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/add/tactics"
  //       )
  //     },
  //     // 期货匹配（策略）编辑
  //     {
  //       path: "/tactics_A",
  //       name: "tactics_A",
  //       meta: {
  //         auth: true,
  //         title: "期货匹配（策略）"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/edit/tactics_A"
  //       )
  //     },
  //     // 期货匹配（指令）
  //     {
  //       path: "/instruct",
  //       name: "instruct",
  //       meta: {
  //         auth: true,
  //         title: "期货匹配（指令）"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/add/instruct"
  //       )
  //     },
  //     // 期货匹配（指令）编辑
  //     {
  //       path: "/instruct_A",
  //       name: "instruct_A",
  //       meta: {
  //         auth: true,
  //         title: "期货匹配（指令）"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/edit/instruct_A"
  //       )
  //     },
  //     // 选择指令
  //     {
  //       path: "/selectOrder",
  //       name: "selectOrder",
  //       meta: {
  //         auth: true,
  //         title: "选择指令"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/add/selectOrder"
  //       )
  //     },
  //     // 期权匹配（策略）-新增
  //     {
  //       path: "/optionMatch_E",
  //       name: "optionMatch_E",
  //       meta: {
  //         auth: true,
  //         title: "期权匹配（策略）-新增"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/add/optionMatch_E"
  //       )
  //     },
  //     // 期权匹配（策略）-修改
  //     {
  //       path: "/optionMatch_A",
  //       name: "optionMatch_A",
  //       meta: {
  //         auth: true,
  //         title: "期权匹配（策略）"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/edit/optionMatch_A"
  //       )
  //     },
  //     // 期权匹配（指令）-新增
  //     {
  //       path: "/optionsCommand",
  //       name: "optionsCommand",
  //       meta: {
  //         auth: true,
  //         title: "期权匹配（指令）-新增"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/add/optionsCommand"
  //       )
  //     },
  //     // 期权匹配（指令）-修改
  //     {
  //       path: "/optionsCommand_A",
  //       name: "optionsCommand_A",
  //       meta: {
  //         auth: true,
  //         title: "期权匹配（指令）"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/edit/optionsCommand_A"
  //       )
  //     },
  //     // 场外期权匹配-新增
  //     {
  //       path: "/overOptionMatch_E",
  //       name: "overOptionMatch_E",
  //       meta: {
  //         auth: true,
  //         title: "场外期权匹配-新增"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/add/overOptionMatch_E"
  //       )
  //     },
  //     // 场外期权匹配-新增
  //     {
  //       path: "/overOptionMatch_A",
  //       name: "overOptionMatch_A",
  //       meta: {
  //         auth: true,
  //         title: "场外期权匹配"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/edit/overOptionMatch_A"
  //       )
  //     },
  //     // 现货匹配-新增
  //     {
  //       path: "/spotMatch_E",
  //       name: "spotMatch_E",
  //       meta: {
  //         auth: true,
  //         title: "现货匹配-新增"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/add/spotMatch_E"
  //       )
  //     },
  //     // 现货匹配-编辑
  //     {
  //       path: "/spotMatch_A",
  //       name: "spotMatch_A",
  //       meta: {
  //         auth: true,
  //         title: "现货匹配"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/match_management/master/edit/spotMatch_A"
  //       )
  //     },
  //     // 新增资金管理-敞口号选择弹框
  //     // {
  //     //   path: "/allocationOfFunds",
  //     //   name: "allocationOfFunds",
  //     //   meta: {
  //     //     auth: true,
  //     //     title: "敞口选择"
  //     //   },
  //     //   component: _import(
  //     //     "page/arbitrage_tool/componnets/model/allocationOfFunds"
  //     //   )
  //     // },
  //     // 新增期权成交
  //     {
  //       path: "/add_optionDeal",
  //       name: "add_optionDeal",
  //       meta: {
  //         auth: true,
  //         title: "新增期权成交"
  //       },
  //       component: _import("page/arbitrage_tool/componnets/add/add_optionDeal")
  //     },
  //     // 敞口管理
  //     {
  //       path: "/gl_open",
  //       name: "gl_open",
  //       meta: {
  //         auth: true,
  //         title: "敞口管理"
  //       },
  //       component: _import("page/arbitrage_tool/componnets/add/gl_open")
  //     },
  //     // 费用管理
  //     {
  //       path: "/gl_cost",
  //       name: "gl_cost",
  //       meta: {
  //         auth: true,
  //         title: "费用管理"
  //       },
  //       component: _import("page/arbitrage_tool/componnets/add/gl_cost")
  //     },
  //     // 新增期权费用管理
  //     {
  //       path: "/add_QHcost",
  //       name: "add_QHcost",
  //       meta: {
  //         auth: true,
  //         title: "新增期货费用管理"
  //       },
  //       component: _import("page/arbitrage_tool/components/add/add_QHcost")
  //     },
  //     // 修改、复制期权费用管理
  //     {
  //       path: "/edit_QHcost",
  //       name: "edit_QHcost",
  //       meta: {
  //         auth: true,
  //         title: "期货费用管理"
  //       },
  //       component: _import("page/arbitrage_tool/components/add/edit_QHcost")
  //     },
  //     // 费用管理
  //     {
  //       path: "/gl_fund",
  //       name: "gl_fund",
  //       meta: {
  //         auth: true,
  //         title: "资金管理"
  //       },
  //       component: _import("page/arbitrage_tool/componnets/add/gl_fund")
  //     },
  //     {
  //       path: "/edit_open",
  //       name: "edit_open",
  //       meta: {
  //         auth: true,
  //         title: "现货敞口"
  //       },
  //       component: _import("page/arbitrage_tool/componnets/add/edit_open")
  //     },
  //     // 费用管理
  //     {
  //       path: "/edit_cost",
  //       name: "edit_cost",
  //       meta: {
  //         auth: true,
  //         title: "费用管理"
  //       },
  //       component: _import("page/arbitrage_tool/componnets/add/edit_cost")
  //     },
  //     // 资金管理
  //     {
  //       path: "/edit_fund",
  //       name: "edit_fund",
  //       meta: {
  //         auth: true,
  //         title: "资金管理"
  //       },
  //       component: _import("page/arbitrage_tool/componnets/add/edit_fund")
  //     },
  //     // 新增现货敞口
  //     {
  //       path: "/add_open",
  //       name: "add_open",
  //       meta: {
  //         auth: true,
  //         title: "新增现货敞口"
  //       },
  //       component: _import("page/arbitrage_tool/componnets/add/add_open")
  //     },
  //     // 修改现货敞口
  //     {
  //       path: "/edit_open",
  //       name: "edit_open",
  //       meta: {
  //         auth: true,
  //         title: "现货敞口"
  //       },
  //       component: _import("page/arbitrage_tool/componnets/add/edit_open")
  //     },
  //     // 新增资金管理
  //     {
  //       path: "/add_fund",
  //       name: "add_fund",
  //       meta: {
  //         auth: true,
  //         title: "新增资金管理"
  //       },
  //       component: _import("page/arbitrage_tool/componnets/add/add_fund")
  //     },
  //     // 新增资金管理-敞口号选择弹框
  //     // {
  //     //   path: "/allocationOfFunds",
  //     //   name: "allocationOfFunds",
  //     //   meta: {
  //     //     auth: true,
  //     //     title: "敞口选择"
  //     //   },
  //     //   component: _import(
  //     //     "page/arbitrage_tool/componnets/model/allocationOfFunds"
  //     //   )
  //     // },
  //     // 新增费用管理
  //     {
  //       path: "/add_cost",
  //       name: "add_cost",
  //       meta: {
  //         auth: true,
  //         title: "新增费用管理"
  //       },
  //       component: _import("page/arbitrage_tool/componnets/add/add_cost")
  //     },
  //     // 新增期货指令
  //     {
  //       path: "/add_futures_orders",
  //       name: "add_futures_orders",
  //       meta: {
  //         auth: true,
  //         title: "新增期货指令"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/add/add_futures_orders"
  //       )
  //     },
  //      // 新增期权指令
  //      {
  //       path: "/add_qiquan_orders",
  //       name: "add_qiquan_orders",
  //       meta: {
  //         auth: true,
  //         title: "新增期权指令"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/add/add_qiquan_orders"
  //       )
  //     },
  //     {
  //       path: "/update_futures_orders",
  //       name: "update_futures_orders",
  //       meta: {
  //         auth: true,
  //         title: "修改期货指令"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/add/update_futures_orders"
  //       )
  //     },
  //     //修改期权
  //     {
  //       path: "/update_qiquan_orders",
  //       name: "update_qiquan_orders",
  //       meta: {
  //         auth: true,
  //         title: "修改期权指令"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/add/update_qiquan_orders"
  //       )
  //     },
  //     // 新增指令自成交
  //     {
  //       path: "/add_order_self-clinching",
  //       name: "add_order_self-clinching",
  //       meta: {
  //         auth: true,
  //         title: "新增指令自成交"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/add/add_order_self-clinching"
  //       )
  //     },
  //     // 审批历史
  //     {
  //       path: "/examine_historyss",
  //       name: "examine_historyss",
  //       meta: {
  //         auth: true,
  //         title: "审批历史"
  //       },
  //       component: _import(
  //         "page/administrative_tool/components/examine_historyss"
  //       )
  //     },
  //     //修改指令自成交
  //     {
  //       path: "/update_order_self-clinching",
  //       name: "update_order_self-clinching",
  //       meta: {
  //         auth: true,
  //         title: "修改指令自成交"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/add/update_order_self-clinching"
  //       )
  //     },
  //     // 指令明细选择
  //     {
  //       path: "/orderDetails",
  //       name: "orderDetails",
  //       meta: {
  //         auth: true,
  //         title: "指令明细选择"
  //       },
  //       component: _import("page/hedging_strategy/componnets/add/orderDetails")
  //     },
  //     // 策略管理修改
  //     {
  //       path: "/spotFuturesHedging_E",
  //       name: "spotFuturesHedging_E",
  //       meta: {
  //         auth: true,
  //         title: "策略管理"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/edit/spotFuturesHedging_E"
  //       )
  //     },
  //     {
  //       path: "/spotHedging_E",
  //       name: "spotHedging_E",
  //       meta: {
  //         auth: true,
  //         title: "策略管理"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/edit/spotHedging_E"
  //       )
  //     },
  //     {
  //       path: "/spotOptionHedging_E",
  //       name: "spotOptionHedging_E",
  //       meta: {
  //         auth: true,
  //         title: "策略管理"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/edit/spotOptionHedging_E"
  //       )
  //     },
  //     {
  //       path: "/futuresArbitrage_E",
  //       name: "futuresArbitrage_E",
  //       meta: {
  //         auth: true,
  //         title: "策略管理"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/edit/futuresArbitrage_E"
  //       )
  //     },
  //     {
  //       path: "/spotUnilateral_E",
  //       name: "spotUnilateral_E",
  //       meta: {
  //         auth: true,
  //         title: "策略管理"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/edit/spotUnilateral_E"
  //       )
  //     },
  //     {
  //       path: "/futuresUnilateral_E",
  //       name: "futuresUnilateral_E",
  //       meta: {
  //         auth: true,
  //         title: "策略管理"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/edit/futuresUnilateral_E"
  //       )
  //     },
  //     {
  //       path: "/overCounterOption_E",
  //       name: "overCounterOption_E",
  //       meta: {
  //         auth: true,
  //         title: "策略管理"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/edit/overCounterOption_E"
  //       )
  //     },
  //     {
  //       path: "/ProfitAndLoss_E",
  //       name: "ProfitAndLoss_E",
  //       meta: {
  //         auth: true,
  //         title: "策略初期盈亏"
  //       },
  //       component: _import(
  //         "page/hedging_strategy/componnets/tactical_management/master/edit/ProfitAndLoss_E"
  //       )
  //     },
  //     {
  //       path: "/position_analysis_details",
  //       name: "position_analysis_details",
  //       meta: {
  //         auth: true,
  //         title: "头寸分析明细"
  //       },
  //       component: _import(
  //         "page/report_form_statistics/componnets/position_analysis_details"
  //       )
  //     },
  //     {
  //       path: "/gain_and_loss_analysis_details",
  //       name: "gain_and_loss_analysis_details",
  //       meta: {
  //         auth: true,
  //         title: "盈亏分析明细"
  //       },
  //       component: _import(
  //         "page/report_form_statistics/componnets/gain_and_loss_analysis_details"
  //       )
  //     },
  //     {
  //       path: "/fund_analysis_details",
  //       name: "fund_analysis_details",
  //       meta: {
  //         auth: true,
  //         title: "策略资金占用"
  //       },
  //       component: _import(
  //         "page/report_form_statistics/componnets/fund_analysis_details"
  //       )
  //     },
  //     // 新增价格项
  //     {
  //       path: "/priceItem_M",
  //       name: "priceItem_M",
  //       meta: {
  //         auth: true,
  //         title: "新增价格项"
  //       },
  //       component: _import(
  //         "page/basic_data/componnets/merchandise_news/model/priceItem_M"
  //       )
  //     },
  //     // // // // // // // // // // ///////////////////////////////////////////////////////衍生品管理子页面
  //     {
  //       path: "/data_import",
  //       name: "data_import",
  //       meta: {
  //         auth: true,
  //         title: "期初数据导入"
  //       },
  //       component: _import(
  //         "page/arbitrage_tool/components/Counter_account_management/data_import"
  //       )
  //     },
  //     {
  //       path: "/Transaction_management",
  //       name: "Transaction_management",
  //       meta: {
  //         auth: true,
  //         title: "柜台成交管理"
  //       },
  //       component: _import(
  //         "page/arbitrage_tool/components/Counter_account_management/Transaction_management"
  //       )
  //     },
  //     {
  //       path: "/Funds_management",
  //       name: "Funds_management",
  //       meta: {
  //         auth: true,
  //         title: "柜台资金管理"
  //       },
  //       component: _import(
  //         "page/arbitrage_tool/components/Counter_account_management/Funds_management"
  //       )
  //     },
  //     {
  //       path: "/Holdings_subsidiary",
  //       name: "Holdings_subsidiary",
  //       meta: {
  //         auth: true,
  //         title: "柜台账户持仓明细"
  //       },
  //       component: _import(
  //         "page/arbitrage_tool/components/Counter_account_management/Holdings_subsidiary"
  //       )
  //     },
  //     {
  //       path: "/print_page",
  //       name: "print_page",
  //       meta: {
  //         auth: true,
  //         title: "打印预览"
  //       },
  //       component: _import("page/report_form_statistics/componnets/print_page")
  //     },
  //     {
  //       path: "/pages",
  //       name: "pages",
  //       meta: {
  //         auth: true,
  //         title: "测试页面"
  //       },
  //       component: _import("page/report_form_statistics/componnets/pages")
  //     },
  //     {
  //       path: "/plan_index",
  //       name: "plan_index",
  //       meta: {
  //         auth: true,
  //         title: "年度计划"
  //       },
  //       component: _import(
  //         "page/annual_plan/plan_index"
  //       )
  //     },
  //     {
  //       path: "/annual_plan/edit",
  //       name: "plan_edit",
  //       meta: {
  //         auth: true,
  //         title: "年度计划-编辑"
  //       },
  //       component: _import(
  //         "page/annual_plan/edit"
  //       )
  //     },
  //     {
  //       path: "/annual_plan/add",
  //       name: "plan_add",
  //       meta: {
  //         auth: true,
  //         title: "年度计划-新增"
  //       },
  //       component: _import(
  //         "page/annual_plan/add"
  //       )
  //     },
  //   ]
  // }

// 线上环境-懒加载
{
  path: "/",
  redirect: { name: "index" },
  component: layoutHeaderAside,
  children: [
    // 首页
    {
      path: "index",
      name: "index",
      meta: {
        auth: true
      },
      component: resolve => require(['@/views/system/index'],resolve ),
    },
    // 系统 前端日志
    {
      path: "log",
      name: "log",
      meta: {
        title: "前端日志",
        auth: true
      },
      component: resolve => require(['@/views/system/log'],resolve ),
    },
    // 刷新页面 必须保留
    {
      path: "refresh",
      name: "refresh",
      hidden: true,
      component: resolve => require(['@/views/system/function/refresh'],resolve ),
    },
    // 页面重定向 必须保留
    {
      path: "redirect/:route*",
      name: "redirect",
      hidden: true,
      component: resolve => require(['@/views/system/function/redirect'],resolve ),
    },
    // 现货期货套期
    {
      path: "/spotFuturesHedging",
      name: "spotFuturesHedging",
      meta: {
        auth: true,
        title: "现货期货套期"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/add/spotFuturesHedging.vue'],resolve ),
    },
    // 现货现货套期
    {
      path: "/spotHedging",
      name: "spotHedging",
      meta: {
        auth: true,
        title: "现货现货套期"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/add/spotHedging'],resolve ),
   },
    // 现货期权套期
    {
      path: "/spotOptionHedging",
      name: "spotOptionHedging",
      meta: {
        auth: true,
        title: "现货期权套期"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/add/spotOptionHedging'],resolve ),
      },
    // 期货期货套利
    {
      path: "/futuresArbitrage",
      name: "futuresArbitrage",
      meta: {
        auth: true,
        title: "期货期货套利"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/add/futuresArbitrage'],resolve ),
     },
    // 现货单边
    {
      path: "/spotUnilateral",
      name: "spotUnilateral",
      meta: {
        auth: true,
        title: "现货单边"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/add/spotUnilateral'],resolve ),
     },
    // 期货单边
    {
      path: "/futuresUnilateral",
      name: "futuresUnilateral",
      meta: {
        auth: true,
        title: "期货单边"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/add/futuresUnilateral'],resolve ),
     },
    // 现货场外期权套期
    {
      path: "/overCounterOption",
      name: "overCounterOption",
      meta: {
        auth: true,
        title: "现货场外期权套期"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/add/overCounterOption'],resolve ),
      },
    // 策略期初盈亏
    {
      path: "/profitAndLoss",
      name: "profitAndLoss",
      meta: {
        auth: true,
        title: "策略期初盈亏"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/add/profitAndLoss'],resolve ),
      },
    // 选择策略
    {
      path: "/selectionStrategy",
      name: "selectionStrategy",
      meta: {
        auth: true,
        title: "选择策略"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/add/selectionStrategy'],resolve ),
     },
    {
      path: "/selectionStrategy_two",
      name: "selectionStrategy_two",
      meta: {
        auth: true,
        title: "选择策略"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/add/selectionStrategy_two'],resolve ),
      },
    // 期货匹配（策略）
    {
      path: "/tactics",
      name: "tactics",
      meta: {
        auth: true,
        title: "期货匹配（策略）-新增"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/add/tactics'],resolve ),
      },
    // 期货匹配（策略）编辑
    {
      path: "/tactics_A",
      name: "tactics_A",
      meta: {
        auth: true,
        title: "期货匹配（策略）"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/edit/tactics_A'],resolve ),
    },
    // 期货匹配（指令）
    {
      path: "/instruct",
      name: "instruct",
      meta: {
        auth: true,
        title: "期货匹配（指令）"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/add/instruct'],resolve ),
      },
    // 期货匹配（指令）编辑
    {
      path: "/instruct_A",
      name: "instruct_A",
      meta: {
        auth: true,
        title: "期货匹配（指令）"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/edit/instruct_A'],resolve ),
      },
    // 选择指令
    {
      path: "/selectOrder",
      name: "selectOrder",
      meta: {
        auth: true,
        title: "选择指令"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/add/selectOrder'],resolve ),
     },
    // 期权匹配（策略）-新增
    {
      path: "/optionMatch_E",
      name: "optionMatch_E",
      meta: {
        auth: true,
        title: "期权匹配（策略）-新增"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/add/optionMatch_E'],resolve ),
      },
    // 期权匹配（策略）-修改
    {
      path: "/optionMatch_A",
      name: "optionMatch_A",
      meta: {
        auth: true,
        title: "期权匹配（策略）"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/edit/optionMatch_A'],resolve ),
      },
    // 期权匹配（指令）-新增
    {
      path: "/optionsCommand",
      name: "optionsCommand",
      meta: {
        auth: true,
        title: "期权匹配（指令）-新增"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/add/optionsCommand'],resolve ),
     },
    // 期权匹配（指令）-修改
    {
      path: "/optionsCommand_A",
      name: "optionsCommand_A",
      meta: {
        auth: true,
        title: "期权匹配（指令）"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/edit/optionsCommand_A'],resolve ),
      },
    // 场外期权匹配-新增
    {
      path: "/overOptionMatch_E",
      name: "overOptionMatch_E",
      meta: {
        auth: true,
        title: "场外期权匹配-新增"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/add/overOptionMatch_E'],resolve ),
      },
    // 场外期权匹配-新增
    {
      path: "/overOptionMatch_A",
      name: "overOptionMatch_A",
      meta: {
        auth: true,
        title: "场外期权匹配"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/edit/overOptionMatch_A'],resolve ),
      },
    // 现货匹配-新增
    {
      path: "/spotMatch_E",
      name: "spotMatch_E",
      meta: {
        auth: true,
        title: "现货匹配-新增"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/add/spotMatch_E'],resolve ),
      },
    // 现货匹配-编辑
    {
      path: "/spotMatch_A",
      name: "spotMatch_A",
      meta: {
        auth: true,
        title: "现货匹配"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/match_management/master/edit/spotMatch_A'],resolve ),
    },
    // 新增资金管理-敞口号选择弹框
    // {
    //   path: "/allocationOfFunds",
    //   name: "allocationOfFunds",
    //   meta: {
    //     auth: true,
    //     title: "敞口选择"
    //   },
    //   component: _import(
    //     "page/arbitrage_tool/componnets/model/allocationOfFunds"
    //   )
    // },
    // 新增期权成交
    {
      path: "/add_optionDeal",
      name: "add_optionDeal",
      meta: {
        auth: true,
        title: "新增期权成交"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/componnets/add/add_optionDeal'],resolve ),
    },
    // 敞口管理
    {
      path: "/gl_open",
      name: "gl_open",
      meta: {
        auth: true,
        title: "敞口管理"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/componnets/add/gl_open'],resolve ),
    },
    // 费用管理
    {
      path: "/gl_cost",
      name: "gl_cost",
      meta: {
        auth: true,
        title: "费用管理"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/componnets/add/gl_cost'],resolve ),
    },
    // 新增期权费用管理
    {
      path: "/add_QHcost",
      name: "add_QHcost",
      meta: {
        auth: true,
        title: "新增期货费用管理"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/components/add/add_QHcost'],resolve ),
    },
    // 修改、复制期权费用管理
    {
      path: "/edit_QHcost",
      name: "edit_QHcost",
      meta: {
        auth: true,
        title: "期货费用管理"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/components/add/edit_QHcost'],resolve ),
    },
    // 费用管理
    {
      path: "/gl_fund",
      name: "gl_fund",
      meta: {
        auth: true,
        title: "资金管理"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/componnets/add/gl_fund'],resolve ),
    },
    {
      path: "/edit_open",
      name: "edit_open",
      meta: {
        auth: true,
        title: "现货敞口"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/componnets/add/edit_open'],resolve ),
    },
    // 费用管理
    {
      path: "/edit_cost",
      name: "edit_cost",
      meta: {
        auth: true,
        title: "费用管理"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/componnets/add/edit_cost'],resolve ),
    },
    // 资金管理
    {
      path: "/edit_fund",
      name: "edit_fund",
      meta: {
        auth: true,
        title: "资金管理"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/componnets/add/edit_fund'],resolve ),
    },
    // 新增现货敞口
    {
      path: "/add_open",
      name: "add_open",
      meta: {
        auth: true,
        title: "新增现货敞口"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/componnets/add/add_open'],resolve ),
    },
    // 修改现货敞口
    {
      path: "/edit_open",
      name: "edit_open",
      meta: {
        auth: true,
        title: "现货敞口"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/componnets/add/edit_open'],resolve ),
    },
    // 新增资金管理
    {
      path: "/add_fund",
      name: "add_fund",
      meta: {
        auth: true,
        title: "新增资金管理"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/componnets/add/add_fund'],resolve ),
    },
    // 新增资金管理-敞口号选择弹框
    // {
    //   path: "/allocationOfFunds",
    //   name: "allocationOfFunds",
    //   meta: {
    //     auth: true,
    //     title: "敞口选择"
    //   },
    //   component: _import(
    //     "page/arbitrage_tool/componnets/model/allocationOfFunds"
    //   )
    // },
    // 新增费用管理
    {
      path: "/add_cost",
      name: "add_cost",
      meta: {
        auth: true,
        title: "新增费用管理"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/componnets/add/add_cost'],resolve ),
    },
    // 新增期货指令
    {
      path: "/add_futures_orders",
      name: "add_futures_orders",
      meta: {
        auth: true,
        title: "新增期货指令"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/add/add_futures_orders'],resolve ),
    },
     // 新增期权指令
     {
      path: "/add_qiquan_orders",
      name: "add_qiquan_orders",
      meta: {
        auth: true,
        title: "新增期权指令"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/add/add_qiquan_orders'],resolve ),
     },
    {
      path: "/update_futures_orders",
      name: "update_futures_orders",
      meta: {
        auth: true,
        title: "修改期货指令"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/add/update_futures_orders'],resolve ),
     },
    //修改期权
    {
      path: "/update_qiquan_orders",
      name: "update_qiquan_orders",
      meta: {
        auth: true,
        title: "修改期权指令"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/add/update_qiquan_orders'],resolve ),
     },
    // 新增指令自成交
    {
      path: "/add_order_self-clinching",
      name: "add_order_self-clinching",
      meta: {
        auth: true,
        title: "新增指令自成交"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/add/add_order_self-clinching'],resolve ),
      },
    // 审批历史
    {
      path: "/examine_historyss",
      name: "examine_historyss",
      meta: {
        auth: true,
        title: "审批历史"
      },
      component: resolve => require(['@/views/page/administrative_tool/components/examine_historyss'],resolve ),
      },
    //修改指令自成交
    {
      path: "/update_order_self-clinching",
      name: "update_order_self-clinching",
      meta: {
        auth: true,
        title: "修改指令自成交"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/add/update_order_self-clinching'],resolve ),
      },
    // 指令明细选择
    {
      path: "/orderDetails",
      name: "orderDetails",
      meta: {
        auth: true,
        title: "指令明细选择"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/add/orderDetails'],resolve ),
     },
    // 策略管理修改
    {
      path: "/spotFuturesHedging_E",
      name: "spotFuturesHedging_E",
      meta: {
        auth: true,
        title: "策略管理"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/edit/spotFuturesHedging_E'],resolve ),
      },
    {
      path: "/spotHedging_E",
      name: "spotHedging_E",
      meta: {
        auth: true,
        title: "策略管理"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/edit/spotHedging_E'],resolve ),
      },
    {
      path: "/spotOptionHedging_E",
      name: "spotOptionHedging_E",
      meta: {
        auth: true,
        title: "策略管理"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/edit/spotOptionHedging_E'],resolve ),
      },
    {
      path: "/futuresArbitrage_E",
      name: "futuresArbitrage_E",
      meta: {
        auth: true,
        title: "策略管理"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/edit/futuresArbitrage_E'],resolve ),
     },
    {
      path: "/spotUnilateral_E",
      name: "spotUnilateral_E",
      meta: {
        auth: true,
        title: "策略管理"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/edit/spotUnilateral_E'],resolve ),
      },
    {
      path: "/futuresUnilateral_E",
      name: "futuresUnilateral_E",
      meta: {
        auth: true,
        title: "策略管理"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/edit/futuresUnilateral_E'],resolve ),
     },
    {
      path: "/overCounterOption_E",
      name: "overCounterOption_E",
      meta: {
        auth: true,
        title: "策略管理"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/edit/overCounterOption_E'],resolve ),
      },
    {
      path: "/ProfitAndLoss_E",
      name: "ProfitAndLoss_E",
      meta: {
        auth: true,
        title: "策略初期盈亏"
      },
      component: resolve => require(['@/views/page/hedging_strategy/componnets/tactical_management/master/edit/ProfitAndLoss_E'],resolve ),
      },
    {
      path: "/position_analysis_details",
      name: "position_analysis_details",
      meta: {
        auth: true,
        title: "头寸分析明细"
      },
      component: resolve => require(['@/views/page/report_form_statistics/componnets/position_analysis_details'],resolve ),
      },
    {
      path: "/gain_and_loss_analysis_details",
      name: "gain_and_loss_analysis_details",
      meta: {
        auth: true,
        title: "盈亏分析明细"
      },
      component: resolve => require(['@/views/page/report_form_statistics/componnets/gain_and_loss_analysis_details'],resolve ),
     },
    {
      path: "/fund_analysis_details",
      name: "fund_analysis_details",
      meta: {
        auth: true,
        title: "策略资金占用"
      },
      component: resolve => require(['@/views/page/report_form_statistics/componnets/fund_analysis_details'],resolve ),
      },
    // 新增价格项
    {
      path: "/priceItem_M",
      name: "priceItem_M",
      meta: {
        auth: true,
        title: "新增价格项"
      },
      component: resolve => require(['@/views/page/basic_data/componnets/merchandise_news/model/priceItem_M'],resolve ),
     },
    // // // // // // // // // // ///////////////////////////////////////////////////////衍生品管理子页面
    {
      path: "/data_import",
      name: "data_import",
      meta: {
        auth: true,
        title: "期初数据导入"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/components/Counter_account_management/data_import'],resolve ),
      },
    {
      path: "/Transaction_management",
      name: "Transaction_management",
      meta: {
        auth: true,
        title: "柜台成交管理"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/components/Counter_account_management/Transaction_management'],resolve ),
      },
    {
      path: "/Funds_management",
      name: "Funds_management",
      meta: {
        auth: true,
        title: "柜台资金管理"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/components/Counter_account_management/Funds_management'],resolve ),
     },
    {
      path: "/Holdings_subsidiary",
      name: "Holdings_subsidiary",
      meta: {
        auth: true,
        title: "柜台账户持仓明细"
      },
      component: resolve => require(['@/views/page/arbitrage_tool/components/Counter_account_management/Holdings_subsidiary'],resolve ),
      },
    {
      path: "/print_page",
      name: "print_page",
      meta: {
        auth: true,
        title: "打印预览"
      },
      component: resolve => require(['@/views/page/report_form_statistics/componnets/print_page'],resolve ),
     },
    {
      path: "/pages",
      name: "pages",
      meta: {
        auth: true,
        title: "测试页面"
      },
      component: resolve => require(['@/views/page/report_form_statistics/componnets/pages'],resolve ),
     },
    {
      path: "/plan_index",
      name: "plan_index",
      meta: {
        auth: true,
        title: "年度计划"
      },
      component: resolve => require(['@/views/page/annual_plan/plan_index'],resolve ),
      },
    {
      path: "/annual_plan/edit",
      name: "plan_edit",
      meta: {
        auth: true,
        title: "年度计划-编辑"
      },
      component: resolve => require(['@/views/page/annual_plan/edit'],resolve ),
      },
    {
      path: "/annual_plan/add",
      name: "plan_add",
      meta: {
        auth: true,
        title: "年度计划-新增"
      },
      component: resolve => require(['@/views/page/annual_plan/add'],resolve ),
      component: _import(
        "page/annual_plan/add"
      )
    },
  ]
}

];
/**
 * 在主框架之外显示
 */
const frameOut = [
  // 登录
  {
    path: "/login",
    name: "login",
    component: resolve => require(['@/views/system/login'],resolve ),
   }
];
/**
 * 错误页面
 */
const errorPage = [
  // {
  //   path: '*',
  //   name: '404',
  //   component: _import('system/error/404')
  // }
];

// 导出需要显示菜单的
export const frameInRoutes = frameIn;

// 重新组织后导出
export default [...frameIn, ...frameOut, ...errorPage];
